package com.wsleo.jblog.service.impl;

import java.util.List;

import com.wsleo.jblog.model.article.ArticleCatalog;
import com.wsleo.jblog.service.FacadeService;
import com.wsleo.jblog.service.article.ArticleCatalogService;
import com.wsleo.jblog.service.impl.article.ArticleCatalogServiceImpl;

public class FacadeServiceImpl implements FacadeService {
	
	public final static FacadeService facade = new FacadeServiceImpl();
	private ArticleCatalogService articleCatalogService;
	
	private FacadeServiceImpl() {
		articleCatalogService = new ArticleCatalogServiceImpl();
	}

	public ArticleCatalog getById(Long id) {
		return articleCatalogService.getById(id);
	}

	public List<ArticleCatalog> catalogs() {
		return articleCatalogService.catalogs();
	}

	public int counts(String filter) {
		return articleCatalogService.counts(filter);
	}

}
